import React from 'react';
import Product from "./product.js"
export default class Dish extends React.Component{
   constructor(props){
       super(props);
   }

   render(){
       return <div className="cai-floor">
           <h3>{this.props.dishList.name}</h3>
           <ul>
                {
                    this.props.dishList.foods.map((item,idx)=>(<Product key={idx} dish={item}/>))
                }
           </ul>
       </div>
   }
}